<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/template/crud.xhtml">
	<ui:param name="idForm" value="frmAccompaniment" />
	<ui:param name="prependId" value="false" />
	<ui:param name="backingBeanName" value="#{accompBean}" />
	<ui:param name="panelHeader" value="#{msgs['title.accompanimentOf']}" />
	<ui:param name="complementTitle" value="#{msgs['label.serviceOrder']}" />
	
	<ui:define name="spaceFields">
		<h:panelGrid columns="2" styleClass="panelGrid">
			<h:outputLabel value="#{msgs['label.name']}:" />
			<h:outputLabel value="#{msgs['label.email']}:" />

			<p:inputText value="#{userBean.domain.name}" maxlength="80" styleClass="inputText" required="#{userBean.requiredOnInsEdi}"
				disabled="#{userBean.disabledOnDefaultPreview}" onkeyup="toUpperCase(this);"
				requiredMessage="#{msgs['msg.error.required.name']}" />
		</h:panelGrid>
	</ui:define>

	<ui:define name="tableColumn">
		<ui:param name="usingDataTableDefault" value="false" />
		<p:column>
			<f:facet name="header">
				<h:outputText value="#{msgs['label.id']}" />
			</f:facet>
			<h:outputText value="#{obj.id}" />
		</p:column>
		<p:column>
			<f:facet name="header">
				<h:outputText value="#{msgs['label.dateOfSolicitation']}" />
			</f:facet>
			<h:outputText value="#{obj.dateSolicitation}" />
		</p:column>
	</ui:define>
</ui:composition>